<?php
/****************************************************************************

	COPYRIGHT(C) WWW.MAXSI.DK, MAXSI SOFTWARE, SORTIE 2009
	ALL RIGHTS RESERVED

	Maxsi Distribution ContentServer/ Branch
	Scripts running a Maxsi Distribution Compatible Content Server.	
	
	download.php
	Donloads a single file from an archive. Obsolete.

****************************************************************************/

	// TODO: DELETE THIS FILE!

	die('This action is obsolete because of security flaws.');

	$download = $_GET['download'];
	$content_archieve = $_GET['content_archieve'];
	header('Transfer-Encoding: chunked');
	header('Content-Type: application/x-MaxsiEngineFile');
	
	echo file_get_contents($content_archieve.'/'.$download);
?>